﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Web.register1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>Tiamat图片站</title>
<link href="./style/css/master.css" rel="stylesheet" type="text/css" />
<link href="./style/css/style.css" rel="stylesheet" type="text/css" />
<!--<link href="http://bdimg.share.baidu.com/static/css/bdsstyle.css?cdnversion=20121228" rel="stylesheet" type="text/css">--></head>
<script type="text/javascript" language="javascript">
    function isValidate() {
        var uname = document.getElementById("username").value;
        var pwd = document.getElementById("password").value;
        var repwd = document.getElementById("repassword").value;
        var email = document.getElementById("email").value;


        if (isNull(uname)) {
            alert('用户名不能为空');
            return false;
        }

        else if (!minLength(uname, 5)) {
            alert('用户名必须大于5位');
            return false;
        }
        else if (maxLength(uname, 15)) {
            alert('用户名必须小于15位');
            return false;
        }
        else if (!uname.match(/^[\u4E00-\u9FA5a-zA-Z0-9_]{3,20}$/)) {
            alert('只能包含字母数字下划线汉字');
            return false;
        }
        else if (isNull(pwd)) {
            alert('密码不能为空');
            return false;
        }
        else if (!minLength(pwd, 5)) {
            alert('密码大于5位');
            return false;
        }
        else if (maxLength(pwd, 15)) {
            alert('密码必须小于15位');
            return false;
        }
        else if (isNull(repwd)) {
            alert('密码不能为空');
            return false;
        }
        else if (pwd != repwd) {
            alert('前后密码输入不一致，请从新输入');
            return false;
        }
        else if (isNull(email)) {
            alert('邮箱不能为空');
            return false;
        }
        else if (!isEmail(email)) {
            alert('请输入正确的邮箱');
            return false;
        }



    }
    function minLength(str, length) {
        if (str.length > length) {
            return true;
        } else {
            return false;
        }
    }
    function maxLength(str, length) {
        if (str.length > length) {
            return true;
        } else {

            return false;
        }
    }
    function isNull(str) {
        if ((str == null) || (str == "")) {
            return true;
        } else {
            return false;
        }
    }
    function isEmail(email) {
        if (email.length == 0) {
            return false;
        }
        index1 = email.indexOf('@');
        index2 = email.indexOf('.');

        if ((index1 < 1) || (index2 < 1) || (index2 - index1 < 2) || (index2 + 1 == email.length)) {
            return false;
        } else {
            return true;
        }

    }

</script>
<body>
<form id="form1" runat="server">
    <iframe style="display: none;" frameborder="0"></iframe><div id="bdshare_s" style="display: block;"><iframe id="bdsIfr" style="position:absolute;display:none;z-index:9999;" frameborder="0"></iframe><div id="bdshare_l" style="display: none;"><div id="bdshare_l_c"><h6>分享到</h6><ul><li><a href="#" class="bds_mshare mshare">一键分享</a></li><li><a href="#" class="bds_qzone qqkj">QQ空间</a></li><li><a href="#" class="bds_tsina xlwb">新浪微博</a></li><li><a href="#" class="bds_baidu bdsc">百度搜藏</a></li><li><a href="#" class="bds_renren rrw">人人网</a></li><li><a href="#" class="bds_tqq txwb">腾讯微博</a></li><li><a href="#" class="bds_bdxc bdxc">百度相册</a></li><li><a href="#" class="bds_kaixin001 kxw">开心网</a></li><li><a href="#" class="bds_tqf txpy">腾讯朋友</a></li><li><a href="#" class="bds_tieba bdtb">百度贴吧</a></li><li><a href="#" class="bds_douban db">豆瓣网</a></li><li><a href="#" class="bds_tsohu shwb">搜狐微博</a></li><li><a href="#" class="bds_bdhome bdhome">百度新首页</a></li><li><a href="#" class="bds_sqq sqq">QQ好友</a></li><li><a href="#" class="bds_thx thx">和讯微博</a></li><li><a href="#" class="bds_more">更多...</a></li></ul><p><a href="#" class="goWebsite">百度分享</a></p></div></div></div>
    <div class="box">
	<div class="header">
    	<div class="top">
            <div class="toplink">
            	<ul>
                   <li class="toplink_li"><h1>图片</h1></li>
                    <li><h1>动漫</h1></li>
                    <li><h1>萌物</h1></li>
                    <li><h1>爆笑</h1></li>
                    <li><h1>趣味</h1></li>
                </ul>
            </div>
            <div class="logo">
            	<strong>
                	<a href="" title="精准像素主页">
                    <img src="Styles/imgs/logo.png" title="精准像素主页" alt="精准像素工作室Logo"></a>
                    <span>连接你我-Tiamat图片站!</span>
                </strong>
                <div class="search">
                	<script type="text/css" src=""></script>
                    <asp:TextBox ID="TextBox_Search" runat="server" Height="32px" Width="265px" Text="搜索图片关键字"></asp:TextBox>
                    <asp:Button ID="Button_Search" runat="server" onclick="Search_Click" Text="搜索" 
                        Font-Size="14pt" ForeColor="Black" Height="32px" Width="76px" />
                    <script type="text/css" src="">
                    </script>
                </div>
            </div>
        </div>
        <div class="nav">
        	<dl>
            	<dt><a href="" title="全部图片" >全部图片</a></dt>
                <dt><a href="" title="高清大图">高清大图</a></dt>
                <dt><a href="" title="萌物集合">萌物集合</a></dt>
                <dt><a href="" title="吃货联盟">吃货联盟</a></dt>
                <dt><a href="" title="Cosplay">Cosplay</a></dt>
                <dt><a href="" title="网络服务">网络服务</a></dt>
                <dt><a href="" title="关于我们">关于我们</a></dt>
            </dl>
        </div>
 
  <div class="banner">
        	<div class="banner_left">
            	<div id="focus">
                    <ul style="left: 0px; width: 1390px;">
                                                                                                                                                      
                        <li>
                        <a href="" title="精彩推荐">
                        <img src="/Styles/imgs/3b5ea328fec0086a4a162200b6f371ef.jpg" alt="精彩推荐" title="精彩推荐">
                        </a>
                        </li>
                         
                        <li>
                        <a href="http://11px.cn/About/2013-03-22/1.html" title="精彩推荐">
                        <img src="/Styles/imgs/70788f357d5e4005e52806661f3866ef.jpg" alt="精彩推荐" title="精彩推荐">
                        </a>
                        </li>
                                            </ul>
                <div class="btnBg" style="opacity: 0.2;"></div><div class="btn"><span style="opacity: 1;"></span><span style="opacity: 0.4;"></span></div><div class="preNext pre" style="opacity: 0.1;"></div><div class="preNext next" style="opacity: 0.2;"></div></div>
            </div>
            <div class="banner_right">
           
            </div>
      </div>
      </div>
      </div>
<div class="box">
	<div class="main_boder">
		<div class="kzmb"
<div class="pagebody">
<div class="remain">
	<div class="remain_top">
    	<div class="retxt_b"></div>
    </div>
	<p class="ui-msg onyes">友情提示：带*号的为必填项哦！</p>
	<form name="userinfoform" method=post enctype="multipart/form-data" action=../../enews/index.php>
    <input type=hidden name=enews value=register>
     <input name="groupid" type="hidden" id="groupid" value="1" />
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
    <tr> 
      <td height="25" bgcolor="#FFFFFF" class="td_a">用户名</td>
      <td height="25" bgcolor="#FFFFFF" class="td_b"> <input name='username' type='text' id='username' maxlength='30' class="input_b input_bg" onblur="checkName()"/>(*)</td>
      <span id="myDiv">&nbsp;</span><br/>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF" class="td_a"> 密码</td>
      <td height="25" bgcolor="#FFFFFF" class="td_b"> <input name='password' type='password' id='password' maxlength='20' class="input_b input_bg"/>
(*)</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF" class="td_a">重复密码</td>
      <td height="25" bgcolor="#FFFFFF" class="td_b"> <input name='repassword' type='password' id='repassword' maxlength='20' class="input_b input_bg"/>
(*)</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF" class="td_a">邮箱</td>
      <td height="25" bgcolor="#FFFFFF" class="td_b"> <input name='email' type='text' id='email' maxlength='50' class="input_b input_bg"/>
(*)</td>
    </tr>
    <tr>     
             
             <td height="25" bgcolor="#FFFFFF" class="td_a">验证码</td>
             <td height="25" bgcolor="#FFFFFF" class="td_a">
               <asp:TextBox ID="TextBox1" runat="server"  class="input_b input_bg"></asp:TextBox>
             </td>        
             <td  height="25"  class="td_b">
                <asp:Image ID="Image1" runat="server" ImageUrl="png.aspx" /><br />  
             </td>                     
                                              
   </tr>


    <tr> 
      <td height="25" bgcolor="#FFFFFF" class="td_a">&nbsp;</td>
      <td height="25" bgcolor="#FFFFFF" class="td_b"> 
        &nbsp;&nbsp; <asp:Button ID="Button1" runat="server" class="input_a" Text="注册"  onclick=" Button1_Click" /> &nbsp;&nbsp; <input type='button' name='Submit2' value='返回' onclick='history.go(-1)' class="input_a"/></td>
    </tr>

    </table>
    
   </form>   
</div>
</div>
</div>
   	</div>
</div>
<div class="box">
	<div class="footer">
    	<div class="footer_1">
        	<strong><a href=""><img src="Styles/imgs/footer_1.gif"></a></strong>
            <strong><a href=""><img src="Styles/imgs/footer_2.gif"></a></strong>
            <strong class="footer_1_1"><a href="#"><img src="Styles/imgs/footer_3.gif"></a></strong>
        </div>
    </div>
</div>
<div class="box_2">
	<div class="box_3">
    	<div class="footer_box">
            <div class="b_nav">
                <dl>
                    <dt><a href="" title="全部图片" class="b_nav_1">全部图片</a></dt>
                	<dt><a href="" title="高清大图">高清大图</a></dt>
                    <dt><a href="" title="萌物集合">萌物集合</a></dt>
                    <dt><a href="" title="吃货联盟">吃货联盟</a></dt>
                    <dt><a href="" title="Cosplay">Cosplay</a></dt>
                    <dt><a href="" title="网络服务">网络服务</a></dt>
                    <dt><a href="" title="关于我们">关于我们</a></dt>
                </dl>
            </div>
            <div class="link">
            	<div class="link_img">
                	<ul>
                    							<li>
						<a href="" title="Tiamat小组" target="_blank">

						</a>
                        </li>
                                            </ul>
                </div>
                <div class="link_txt">
                	                    <a href="" title="帝国CMS模板" target="_blank">帝国CMS模板</a>
                                        <a href="" title="帝国CMS教程" target="_blank">帝国CMS教程</a>
                                        <a href="" title="8023游戏网" target="_blank">8023游戏网</a>
                                        <a href="" title="我的网站" target="_blank">我的网站</a>
                                    </div>
            </div>
            <div class="copyright">
            	<p>
                	? 2013 <a href="" title="精准像素">Tiamat</a> - V2.0 Inc. All Rights Reserved
                     备案号：<a href="" target="_blank" rel="nofoolow">鄂A021547</a>
                     
                     <script type="text/javascript">
                         var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
                         document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F48492060a17c470db86e01aa5df23758' type='text/javascript'%3E%3C/script%3E"));
</script><script src=" http://hm.baidu.com/h.js?48492060a17c470db86e01aa5df23758" type="text/javascript"></script><a href="http://tongji.baidu.com/hm-web/welcome/ico?s=48492060a17c470db86e01aa5df23758" target="_blank">百度统计</a>
				</p>
                <em>
                  	<!-- Baidu Button BEGIN -->
                    <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
                    <a class="bds_qzone" title="分享到QQ空间" href="#"></a>
                    <a class="bds_tsina" title="分享到新浪微博" href="#"></a>
                    <a class="bds_tqq" title="分享到腾讯微博" href="#"></a>
                    <a class="bds_renren" title="分享到人人网" href="#"></a>
                    <a class="bds_t163" title="分享到网易微博" href="#"></a>
                    <span class="bds_more">更多</span>
                    <a class="shareCount" href="#" title="累计分享35次">35</a>
                    </div>
                    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6600571" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=380918"></script>
                    
                    <script type="text/javascript">
                        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date() / 3600000)
                    </script>
                    <!-- Baidu Button END -->
                </em>
            </div>
        </div>
	</div>
</div>
<script type="text/javascript" src="http://11px.cn/style/js/jquery.min.js"></script>
<script type="text/javascript" src="http://11px.cn/style/js/QQ.js"></script>
<!--<div id="kefu">

	<!--<div class="box-content off">

    	<div class="title-btn cu"><span><a href="http://www.11px.cn/"></a></span></div>

       <!-- <div class="pad">

             <a target="_blank" href="http://sighttp.qq.com/authd?IDKEY=d4e84e245a1cd83eb15e5189db59826dfe13c1a02e9e7c4d" class="service"></a>

        </div>

      <!--  <div class="text">

        	客服时间：(9:00-22:00)<br>

        </div>

    </div>

</div>-->

<!--<script type="text/javascript" src="http://11px.cn/style/js/layout.js"></script>-->
<!--[if IE 6]>
<script type="text/javascript" src="http://11px.cn/style/js/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript" src="http://11px.cn/style/js/ie6.js"></script>
<script type="text/javascript"> 
DD_belatedPNG.fix('div, ul, li, input , a'); 
</script> 
<![endif]-->
<script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/javascript"></script><script type="text/javascript">                                                                                                              uaredirect("http://web.11px.cn", "http://www.11px.cn");</script>


<div id="fancybox-tmp"></div>
<div id="fancybox-loading"><div></div></div>
<div id="fancybox-overlay"></div>
<div id="fancybox-wrap">
<div id="fancybox-outer">
<div class="fancybox-bg" id="fancybox-bg-n">
</div><div class="fancybox-bg" id="fancybox-bg-ne">
</div><div class="fancybox-bg" id="fancybox-bg-e"></div>
<div class="fancybox-bg" id="fancybox-bg-se">
</div><div class="fancybox-bg" id="fancybox-bg-s"></div>
<div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w">
</div><div class="fancybox-bg" id="fancybox-bg-nw"></div><div id="fancybox-content"></div><a id="fancybox-close">
</a><div id="fancybox-title"></div><a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico">
</span></a><a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a></div>
</div>
</form></body></html>
